<template>
	<view class="container">
		<u-navbar :border-bottom="false" title="我的收货地址	" title-size="32" title-width="500">
		</u-navbar>
		<page-loading :show='pageLoading'>
			<view class="modlues boxS" style="margin-bottom: 20rpx;" v-for="(item,index) in addList" :key='item.id'>
				<view class="m-top">
					<view class="m-top-left">
						<text>{{item.name}}</text>
						<text style="margin-left: 30rpx;">{{item.mobile}}</text>
					</view>
					<!-- <view class="aa"></view> -->
					<view class="m-top-right" @tap.stop="goEdit(item)">
						<i-icon icon="iconqiyebianji"></i-icon>
						<text style="margin-left: 10rpx;">编辑</text>
					</view>
				</view>
				<view class="m-bottom">
					<view class="m-bottom-left text-line2">
						{{item.mcprovince}} {{item.mccity}} {{item.mcdistrict}}
					</view>
					<view class="m-bottom-right">
						<view :class="item.isdefault===1?'bottom-right' :''">{{item.isdefault===0 ? '': '默认'}}</view>
						<view class="bottom-left" style="width:100rpx;" v-if="item.address_label!==0">
							{{item.address_label===1 ? '家': '公司'}}</view>
					</view>
				</view>
				<view style="margin-top: 10rpx;">
					{{item.address}}
				</view>
				<!-- <carList :carlist='carlist'></carList> -->
			</view>
			<default-img :show="addList.length===0"></default-img>
			<u-loadmore :status="loadStatus" @loadmore="more" v-show="addList.length!==0" margin-top="50" />
		</page-loading>
		<view class="footer" @click="addnewaddress">
			<view class="btn">添加新地址</view>
		</view>
	</view>
</template>

<script src='./my_address.js'>
</script>

<style lang="scss" scoped>
	@import './my_address.scss';
</style>
